<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

     <table border="1">
         <tr>
             <td>id</td>
             <td>ename</td>
             <td>dname</td>
             <td>cname</td>
             <td>操作</td>
         </tr>
         <tr th:each="emp : ${empList}">
             <td th:text="${emp.eid}">id</td>
             <td th:text="${emp.ename}">ename</td>
             <td th:text="${emp.dname}">dname</td>
             <td th:text="${emp.cname}">cname</td>
             <td><a th:href="@{'delEmp?eid='+${emp.eid}}"><button >删除</button></a>
             <td><a th:href="@{'updateEmp?eid='+${emp.eid}}"><button >修改</button></a>
             </td>

         </tr>
     </table>
</body>
</html>